package com.fish.service.impl.finance;

import java.util.List;

import com.fish.common.constant.QueryPage;
import com.fish.finance.dao.SettlementDAO;
import com.fish.finance.po.Settlement;
import com.fish.service.finance.SettlementService;

public class SettlementServiceImpl implements SettlementService {
	private SettlementDAO settlementDAO;

	/**
	 * @param settlementDAO the settlementDAO to set
	 */
	public void setSettlementDAO(SettlementDAO settlementDAO) {
		this.settlementDAO = settlementDAO;
	}

	@Override
	public Settlement querySettlementByPrimaryKey(Settlement settlement) {
		return settlementDAO.querySettlementByPrimaryKey(settlement);
	}

	@Override
	public void addSettlement(Settlement settlement) {
		settlementDAO.addSettlement(settlement);
	}

	@Override
	public void updateSettlement(Settlement settlement) {
		settlementDAO.updateSettlement(settlement);
	}

	@Override
	public List<Settlement> querySettlementByObject(Settlement settlement,QueryPage queryPage) {
		return settlementDAO.querySettlementByObject(settlement,queryPage);
	}

	@Override
	public long querySettlementCountByObject(Settlement settlement) {
		return settlementDAO.querySettlementCountByObject(settlement);
	}
	

}
